package InheritanceAndPolymorphism.demo07;

public class Pet {
    protected String name;

    public Pet(String name) {
        this.name = name;
    }

    public void follow() {
        System.out.println(name + " 正在跟随");
    }
}
